package com.bandit.remoting.transport;

import com.bandit.extension.SPI;
import com.bandit.remoting.dto.RpcRequest;

/**
 * 发送RpcRequest
 * @author Bandit
 * @create 2022/2/23 17:07
 */
@SPI
public interface RpcRequestTransport {

    /**
     * 发送RpcRequest并获得结果
     * @param rpcRequest
     * @return returns from server
     */
    Object sendRpcRequest(RpcRequest rpcRequest);

}
